package com.liuyi.netty.im.commons.codes.data.event;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 未就绪实体
 *
 * @author Mr.Fmy
 * @since 2021/12/17
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class NotReady implements Serializable {

    private static final long serialVersionUID = -3559597078754043100L;

    /**
     * 未就绪出发状态码
     */
    private String code;

    /**
     * 未就绪触发原因
     */
    private String msg;

    public static final NotReady LOGOUT = new NotReady().setCode("LOGOUT").setMsg("退出成功");

    public static final NotReady REPLACED = new NotReady().setCode("DISTANCE_LOGIN").setMsg("您的账号在别处登录，如不是本人操作，请及时修改密码");
}
